home *** CD-ROM | disk | FTP | other *** search
/ Micromanía: 100 Demos - Disc 2 / Micromania 100 Demos - Disco 2.iso / Neocron / Neocron_offline_demo_eng.exe / SCRIPTS.PAK / lua_demo_storm_sec2.lua < prev    next >
Encoding:
Text File  |  2002-05-23  |  2.3 KB  |  77 lines

  1. function DIALOG()
  2.  
  3.     NODE(0)
  4.         GETGLOBALTRIGGER("talked_storm_sec2")
  5.         if result == 0 then
  6.             --049
  7.             SAYSPEECH("The frontline is directly behind this checkpoint. I cannot let you pass, agent.",3049)
  8.             --050
  9.             ANSWERSPEECH("Why don't you attack to drive them out of the sector?",1,3050)
  10.         else 
  11.             if result == 1 then    
  12.  
  13.                 GETGLOBALTRIGGER("talked_sk_aw")
  14.                 if result == 3 then
  15.                     --101
  16.                     SAY("What is it?",3101)
  17.                     --084
  18.                     ANSWERSPEECH("Take these 40 units of RayGun ammo... will that be sufficient?",10,3084)
  19.                 else
  20.                     --063
  21.                     SAYSPEECH("We ran out on ammo for the RayGuns. We are waiting for reinforcements and for more ammunition.",3052)
  22.                     ENDDIALOG()
  23.                 end
  24.             else
  25.                 --086
  26.                 SAYSPEECH("Sir, orders to attack have been given. The troops will immediately advance to sector 2.",3086)
  27.                 ENDDIALOG()
  28.             end
  29.         end
  30.  
  31.     NODE(1)
  32.         --052
  33.         SAYSPEECH("We ran out on ammo for the RayGuns. We are waiting for reinforcements and for more ammunition.",3052)
  34.         --053
  35.         ANSWERSPEECH("It's been hours since the last assault. Why do you still have to wait for reinforcements?",2,3053)
  36.         --054
  37.         ANSWERSPEECH("Why don't our troops get some RayGun ammo from the shops in this sector?",3,3054)
  38.  
  39.     NODE(2)
  40.         --056
  41.         SAYSPEECH("We don't know. The terrorists have blocked all supply routes.",3056)
  42.         --054
  43.         ANSWERSPEECH("Why don't our troops get some RayGun ammo from the shops in this sector?",3,3054)
  44.  
  45.     NODE(3)
  46.         --057
  47.         SAYSPEECH("All shops have been looted by the terrorists during the assault. There is no ammunition left in this sector. If you want to help us, talk to the Archer & Wesson dealer. He is a CityAdmin undercover agent. He might know a way to get us some ammo.",3057)
  48.         SETGLOBALTRIGGER("talked_storm_sec2",1)
  49.         SHOWTUTORIALTEXT(1230,1)
  50.         ENDDIALOG()
  51.  
  52.     NODE(10)
  53.  
  54.         --085
  55.  
  56.         TAKEITEM(1601)
  57.         if result == 1 then
  58.  
  59.             SAYSPEECH("That should be more than enough, Sir. I'll give orders to attack sector 2 right away. (-PAUSE-) If you want to join the attack yourself you'd better take this RayGun.",3085)
  60.             SETGLOBALTRIGGER("talked_storm_sec2",2)
  61.             GIVEITEM(3285)
  62.             GIVEITEM(3285)
  63.             GIVEITEM(15)
  64.  
  65.             SENDLEVELMSG("OPEN GATE");    
  66.  
  67.         else
  68.  
  69.             SAYSPEECH("If you could come up with some Deutrithium, I would be able to help the S.T.O.R.M.-Bots...",3063)
  70.  
  71.         end
  72.  
  73.         ENDDIALOG()
  74. end
  75.  
  76.  
  77.